@import "@/styles/variables.less";

.card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  border: @light-border;
  box-sizing: border-box;

  background-color: #fff;
  &.active {
    background-color: @light-primary-bg;
    box-shadow: @light-shadow;
    border: 2px solid @primary-color;
    Image {
      opacity: 0.7;
      transform: scale(1.1);
    }
    title {
      color: @primary-color;
    }
  }

  .image-wrapper {
    overflow: hidden;
    position: relative;
    Image {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
  .title {
    font-size: @size-sm;
    padding: 8px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 90%;
    color: @text-color;
    position: relative;
  }
  .image-action {
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .image-info {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: @light-primary-bg;
    padding: 4px;
  }
}

.empty-image-container {
  color: @default-color;
  background-color: #e8e9ea75;
  font-size: @size-sm;
  padding: 10px;
  box-sizing: border-box;
}
